package cn.aiszs.javafx_imp.mapper;

import cn.aiszs.javafx_imp.pojo.City;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CityMapper extends BaseMapper<City> {
    @Select("select * from javafx.city where phone=#{phone}")
    City finCity(@Param("phone")String phone);
    @Select("select * from javafx.city")
    List<City> findAll();

}
